package com.cn.lf.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.List;

/**
 * Created by liufeng on 2018/6/13
 */

@Service
public class OrderMemberService {

    @Autowired
    private RestTemplate restTemplate;

    public List<String> getOrderAll(){
        List forObject = restTemplate.getForObject("http://service-member/getMemberAll", List.class);
        return forObject;
    }

}
